package cn.edu.hqu.cst.android.uc;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity{
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button I = findViewById(R.id.button1);
        I.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(MainActivity.this,UC1.class);
                startActivities(new Intent[]{intent});
            }
        });
        Button II = findViewById(R.id.button2);
        II.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(MainActivity.this,UC2.class);
                startActivities(new Intent[]{intent});
            }
        });
        Button III = findViewById(R.id.button3);
        III.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(MainActivity.this,UC3.class);
                startActivities(new Intent[]{intent});
            }
        });
        Button IV = findViewById(R.id.button4);
        IV.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(MainActivity.this,UC4.class);
                startActivities(new Intent[]{intent});
            }
        });
        Button V = findViewById(R.id.button5);
        V.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= new Intent(MainActivity.this,UC5.class);
                startActivities(new Intent[]{intent});
            }
        });
    }
}
